<template>
  <details-layout
    :data="data"
    channel="announce"
    titleField="名称"
    dateField="日期"
    contentField="描述">
    <div class="title text-center q-px-lg">{{data.名称}}</div>
    <div class="info row no-wrap relative-position justify-end">
      <div class="type absolute-center">{{$t('类型')}}: {{data.类型}}</div>
      <div class="date">{{data.日期 | normalDate}}</div>
    </div>
    <div class="details" v-html="data.详情"></div>
  </details-layout>
</template>

<script>
import mixins from 'eis-admin-mixins';
import DetailsLayout from '../../components/detailsLayout.vue';
import { GoHomeOnLocaleChange } from '../../components/mixins/locale';

export default {
  name: 'AnnouncementDetails',
  mixins: [mixins.ObjectDataMixin, GoHomeOnLocaleChange],
  components: {
    DetailsLayout,
  },
};
</script>

<style lang="scss" scoped>
</style>
